<?php
class ControllerPaymentFreeCheckout extends Controller {
	public function index() {
    	$this->data['button_confirm'] = $this->language->get('button_confirm');

		$this->data['continue'] = $this->url->link('checkout/success');

        $this->template = 'payment/free_checkout.tpl';
		
		return $this->render();		 
	}
	
	public function confirm() {
		$this->app->model('checkout/voucher', true, true);
		$this->app->model('account/custumer',true,true);
        $this->app->model('localisation/language',true,true);
		$this->app->model('checkout/order',true,true);
        $this->model_checkout_order->confirm($this->session->data['order_id'], $this->setting->get('free_checkout_order_status_id'));
	}
}
?>
